package cn.ylz.ylmall.order.dao.persist.mapper;
import org.apache.ibatis.annotations.Param;

import cn.ylz.ylmall.order.pojo.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Map;

/**
* @author ks
* @description 针对表【order(订单表)】的数据库操作Mapper
* @createDate 2023-08-10 10:10:20
* @Entity cn.ylz.ylmall.order.pojo.entity.Order
*/
@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    /**
     * 查询订单
     * @param orderNo
     * @return
     */
    OrderDetail selectOrder(String orderNo);

    /**
     * 新增订单
     * @param orderDetail
     * @return
     */
    int insertAll(OrderDetail orderDetail);

    /**
     * 根据订单号删除订单
     * @param orderNo
     * @return
     */
    int deleteByOrderNo(@Param("orderNo") String orderNo);

    /**
     * 更新订单
     * @param paramMap
     * @return
     */
    int updateOrderDetail(Map<String,Object> paramMap);
}




